package com.woniu.bank.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * @TableName sys_user
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser implements Serializable {
    private Integer id;
    @NotBlank(message = "用户名不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{5,15}$", message = "账户格式有误！（纯英文，纯数字，英文和数字组合） 5-15位")
    private String tel;

    private String password;

    private String realName;

    private Date brithday;

    private String headImg;

    private String status;

    private static final long serialVersionUID = 1L;


}